﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Security;
using ChatApp.Core.Facade;
using ChatApp.Core.Info;

namespace ChatApp.Models
{
    public class User
    {
        [Required]
        public UserInfo AUserInfo { get; set; }

        public UserInfo Authenticate(string _username, string _password)
        {
            IUserFacade aUserFacade = new UserFacade();
            var aUserInfo = aUserFacade.Authenticate(_username, _password);
            return aUserInfo;
        }
    }
}